// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from "axios"
import VueAxios from "vue-axios"
//引入ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入Vuex
import Vuex from 'vuex'
//引入store
import store from "./store";

Vue.config.productionTip = false
//配置axios 作用保存session的会话状态
axios.defaults.withCredentials=true
Vue.use(VueAxios,axios)
//使用ElementUI
Vue.use(ElementUI);
//使用Vuex
Vue.use(Vuex);



/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
})
